package com.gable.util;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PageUtil{
	//当前第几页
	private int indexPage = 1;
	//一页显示多少数据
	private int pageSize = 10;
	//总数据量
	private int totalSize;
	//总页数
	private int pageCount;

	private int start;

	private int end;

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getEnd() {
		return end;
	}

	public void setEnd(int end) {
		this.end = end;
	}

	//请求参数集合
	private Map<String,Object> parameterMap = new HashMap<String,Object>();
	
	//获取分页结果
	private List<?> list = new ArrayList();

	public int getIndexPage() {
		return indexPage;
	}

	public void setIndexPage(int indexPage) {
		this.indexPage = indexPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(int totalSize) {
		this.totalSize = totalSize;
	}



	public Map<String, Object> getParameterMap() {
		return parameterMap;
	}

	public void setParameterMap(Map<String, Object> parameterMap) {
		this.parameterMap = parameterMap;
	}

	public List<?> getList() {
		return list;
	}

	public void setList(List<?> list) {
		this.list = list;
	}

	
	public PageUtil(int indexPage, int pageSize, int totalSize, int pageCount, Map<String, Object> parameterMap,
			List<?> list) {
		super();
		this.indexPage = indexPage;
		this.pageSize = pageSize;
		this.totalSize = totalSize;
		this.pageCount = pageCount;
		this.parameterMap = parameterMap;
		this.list = list;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public PageUtil() {
		super();
	}
	
	
	
}
